package ar.com.ford.it.fullEconomics.persistence;

import ar.com.ford.it.webengine.persistence.IPersistenceManagerProvider;
import com.ford.it.persistence.PersistenceException;
import com.ford.it.persistence.PersistenceHelper;
import com.ford.it.persistence.PersistenceManager;
import com.ford.it.persistence.PersistenceManagerFactory;

public class PersistenceManagerProvider implements IPersistenceManagerProvider {

	/**
	 * 
	 * @return
	 * @throws PersistenceException
	 */
	public PersistenceManager getManager() throws PersistenceException {

		PersistenceManagerFactory pmf = PersistenceHelper.getPersistenceManagerFactory("PersistenceApp", "/resources/persistence-config.xml");
		return  pmf.getPersistenceManager();
	
	}	
	
}
